import { createApp } from 'vue'
import App from './App.vue'

const initContentScript = () => {
  const container = document.createElement('div')
  container.id = 'lanhu-plugin-container'
  container.style.cssText = `
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
   
  `
  document.body.appendChild(container)
  createApp(App).mount(container)

  console.log('蓝湖插件 Vue 组件已加载')
}
if (document.readyState === 'loading') {
  document.addEventListener('DOMContentLoaded', initContentScript)
} else {
  initContentScript()
}
